package com.example.afinal;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ImageView;

import com.squareup.picasso.Picasso;


public class PictureActivity extends Activity {
//使用picasso通过图片url获取图片并显示，使用户对mbti每个特性有更好的了解
    ImageView img;
    String url ="https://www.simplypsychology.org/wp-content/uploads/MBTI-Personality.jpeg";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main5);
        img = (ImageView)findViewById(R.id.imageview);
        Picasso.get()
                .load(url)
                .into(img);

            }
}









